﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.GridView1.DataSource = OleDBCommon.OleDBObject.GetTableList();
        this.GridView1.DataBind();
        DataTable dt = OleDBCommon.OleDBObject.GetColumnList("UserInfo");
        //if (dt != null)
        //{
        //    dt.Columns.Add("typename",typeof(string));
        //    dt.AcceptChanges();
        //    for (int i = 0; i < dt.Rows.Count; i++)
        //    {
        //        dt.Rows[i]["typename"] = OleDBCommon.OleDBObject.GetDataType(Convert.ToInt32(dt.Rows[i]["DATA_TYPE"]));
        //        dt.Rows[i]["typename"] = OleDBCommon.OleDBObject.GetDataType(Convert.ToInt32(dt.Rows[i]["DATA_TYPE"]));
        //    }
        //}
        this.GridView2.DataSource = dt;
        this.GridView2.DataBind();
        
    }
}
